import { createApp } from 'vue'
import App from './App.vue'
import 'reset-css';
import router from "./router";
import {store,key} from "./store";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as Icons from '@element-plus/icons'
console.log(Icons)

const app = createApp(App)

Object.keys(Icons).forEach((key)=>{
  app.component(key,Icons[key as keyof typeof Icons])
})
// app.component()

app.use(ElementPlus, { size: 'mini', zIndex: 3000 })
app.use(router)
app.use(store,key)
app.mount('#app')
